package com.ruoyi.swap.openapi.orderbook.mapper;

import java.util.List;

import com.ruoyi.spot.openapi.orderbook.domain.VO.SpotOpenapiOrderbookVO;
import com.ruoyi.swap.openapi.orderbook.domain.SwapOpenapiOrderbook;
import com.ruoyi.swap.openapi.orderbook.domain.VO.SwapOpenapiOrderbookVO;
import org.apache.ibatis.annotations.Param;

/**
 * 订单簿Mapper接口
 * 
 * @author saumell
 * @date 2024-08-19
 */
public interface SwapOpenapiOrderbookMapper 
{
    /**
     * 查询订单簿
     * 
     * @param id 订单簿主键
     * @return 订单簿
     */
    public SwapOpenapiOrderbookVO selectSwapOpenapiOrderbookById(Integer id);

    /**
     * 查询订单簿列表
     * 
     * @param swapOpenapiOrderbook 订单簿
     * @return 订单簿集合
     */
    public List<SwapOpenapiOrderbookVO> selectSwapOpenapiOrderbookList(SwapOpenapiOrderbookVO swapOpenapiOrderbook);

    /**
     * 新增订单簿
     * 
     * @param swapOpenapiOrderbook 订单簿
     * @return 结果
     */
    public int insertSwapOpenapiOrderbook(SwapOpenapiOrderbook swapOpenapiOrderbook);

    /**
     * 修改订单簿
     * 
     * @param swapOpenapiOrderbook 订单簿
     * @return 结果
     */
    public int updateSwapOpenapiOrderbook(SwapOpenapiOrderbook swapOpenapiOrderbook);

    /**
     * 删除订单簿
     * 
     * @param id 订单簿主键
     * @return 结果
     */
    public int deleteSwapOpenapiOrderbookById(Integer id);

    /**
     * 批量删除订单簿
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSwapOpenapiOrderbookByIds(Integer[] ids);


    List<SwapOpenapiOrderbookVO> selectSwapAllData();

    Integer queryCurryNumber(@Param("currencyPair")String currencyPair);
}
